package hqyj.example.seata_order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@TableName("orderform")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderForm {
    // 订单id
    @TableId(type = IdType.AUTO)
    public Integer id;
    // 用户id
    public Integer userId;
    // 商品id
    public Integer productId;
    // 商品购买数量
    public Integer number;
    // 订单金额
    public Integer money;
}

